package org.linlinjava.litemall.admin.beans.vo;

import lombok.Data;
import org.linlinjava.litemall.db.domain.LitemallAddress;

import java.time.LocalDate;
import java.util.Objects;

@Data
public class AdminAddressVo {

    private Integer userId;
    /**
     * 用户名
     */
    private String username;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 《阿凡达》
     */
    private String avatar;

    /**
     * 性别
     */
    private Byte gender;

    /**
     * 生日
     */
    private LocalDate birthday;

    /**
     * 电子邮件
     */
    private String email;

    /**
     * 移动
     */
    private String mobile;

    /**
     * 地址
     */
    private LitemallAddress address;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AdminAddressVo that = (AdminAddressVo) o;
        return Objects.equals(username, that.username);
    }

    @Override
    public int hashCode() {
        return Objects.hash(username);
    }


}
